//
//  AppDelegate.h
//  NVAReader
//
//  Created by DuyLK on 6/4/14.
//  Copyright (c) 2014 com.nva.nvareader. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#undef ABS
#undef MIN
#undef MAX

#include "mupdf/fitz.h"

#import "DocRef.h"

@interface AppDelegate : NSObject <NSApplicationDelegate>
{
    NSArray *files;
	NSTimer *timer;
	DocRef *doc;
	NSString *_filename;
	char *_filePath;
}

- (void) openDocument: (NSString*)filename;
- (void) askForPassword: (NSString*)prompt;
- (void) onPasswordOkay;
- (void) onPasswordCancel;
- (void) reload;
@property (assign) IBOutlet NSWindow *window;
@property (assign) IBOutlet NSButton *click;

@end
